package cn.net.autocode.platform.table.ddl.oracle;

import cn.net.autocode.platform.table.ddl.DataBaseDDL;
import com.alibaba.fastjson2.JSONObject;
import cn.net.autocode.dbManager.Dao;


public class OracleDataBaseDDL implements DataBaseDDL {

    private final Dao dao;

    public OracleDataBaseDDL(Dao dao){
        this.dao=dao;
    }
   
    public void createTable(String tableName) {

    }

    public void createServTable(String tableName) {
        String sql = "create table "+tableName+
                " (id nvarchar(36) not null primary key)";
        dao.execute(sql);
    }

   
    public void addColumn(JSONObject column, String tableName) {

    }

   
    public void modifyColumn(JSONObject column, String tableName) {

    }

   
    public void delColumn(String column, String tableName) {
        String sql = "ALTER TABLE "+tableName+" DROP column "+column;
        dao.execute(sql);
    }
}
